package per.jdz.retryer.predicate;

/**
 * 根据返回值结果处理
 */
public class IsEqualPredicates<T> implements IPredicate<T> {

    private final Object object;

    public IsEqualPredicates(Object object) {
        this.object = object;
    }

    @Override
    public boolean apply(T input) {
        return object.equals(input);
    }

}
